/**
 * form表单
 */
seajs.use(["zui/form","zui/fightCalendar","zui/date"],function(Form,Calendar,zDate){
	var form1 = 
			new Form({srcNode:"#CM_Form",validType:"custom",validateFunc:function(ev){
				var field=ev.field;
				var msg=ev.validateMsg;
				if(msg==""){

				}else{
				  	App.showToast(msg);
			  	}
		  	}});
	$(".zaw-btn").on("click",function(){
		if(form1.valid()){
			if ( $("#cbtest").attr("checked") ){
				$("#CM_Form").submit();
			}else{
				App.showToast("同意投保须知和保险条款");
			}
		}
	});
});